package com.kgc.est.dto;

import com.kgc.est.pojo.Evaluate;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "保存商品评估信息")
public class EvaluateDto implements Serializable {

    private Long id;

    //商品id
    private Long modelId;

    //评估价
    private BigDecimal price;

    //定金
    private BigDecimal subscription;

    private ModelDto model;

    private List<EvaluateDetailDto> detailList;

    public EvaluateDto() {
    }

    public EvaluateDto(Evaluate evaluate) {
        this.id = evaluate.getId();
        this.modelId = evaluate.getModelId();
        this.price = evaluate.getPrice();
        this.subscription = evaluate.getSubscription();
    }
}
